package com.ruoyi.merchant.mapper;


import com.ruoyi.common.core.cg.pojo.Store;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Update;

/**
* @author ？？？
* @description 针对表【store】的数据库操作Mapper
* @createDate 2025-03-13 08:38:20
* @Entity com.zt.pojo.Store
*/
@Mapper
public interface StoreMapper {
    @Insert("insert into store (name,type,\n" +
            "status,price,create_time,update_time,address)\n" +
            "values (#{name},#{type},\n" +
            "#{status},#{price},#{createTime},#{updateTime},#{address})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int storeSave(Store store);

    @Update("update store set name=#{name},address=#{address} where id=#{id}")
    int storeUpdate(Store store);


}




